package com.antcom.antread.antreaddatacrawl.himalayaData.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.antcom.antread.common.core.baseRest.domain.BaseDomain;
import org.hibernate.annotations.GenericGenerator;

/**
 * xmlachapterinfo
 * 
 * @author antCom
 * @version 1.0.0 2020-12-05
 */
@Entity
@Table(name = "xmlachapterinfo")
public class ChapterInfo extends BaseDomain {

    /** 章节主键 */
    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    @Column(name = "chapter_id", unique = true, nullable = false, length = 36)
    private String chapterId;

    /** 章节名称 */
    @Column(name = "chapter_name", nullable = true, length = 255)
    private String chapterName;

    /** 喜马拉雅路径 */
    @Column(name = "chapter_url", nullable = true, length = 255)
    private String chapterUrl;

    /** 章节声音 */
    @Column(name = "chapter_voice", nullable = true, length = 2147483647)
    private String chapterVoice;

    /** 喜马拉雅章节id */
    @Column(name = "himalaya_ch_id", nullable = true, length = 10)
    private Integer himalayaChId;

    /** 创建时间 */
    @Column(name = "create_time", nullable = true, length = 10)
    private Date createTime;

    /** 下载标识 0未下载有声书 1下载 */
    @Column(name = "chapter_sign", nullable = true, length = 255)
    private String chapterSign;

    /**
     * 获取章节主键
     * 
     * @return 章节主键
     */
    public String getChapterId() {
        return this.chapterId;
    }

    /**
     * 设置章节主键
     * 
     * @param chapterId
     *          章节主键
     */
    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    /**
     * 获取章节名称
     * 
     * @return 章节名称
     */
    public String getChapterName() {
        return this.chapterName;
    }

    /**
     * 设置章节名称
     * 
     * @param chapterName
     *          章节名称
     */
    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    /**
     * 获取喜马拉雅路径
     * 
     * @return 喜马拉雅路径
     */
    public String getChapterUrl() {
        return this.chapterUrl;
    }

    /**
     * 设置喜马拉雅路径
     * 
     * @param chapterUrl
     *          喜马拉雅路径
     */
    public void setChapterUrl(String chapterUrl) {
        this.chapterUrl = chapterUrl;
    }

    /**
     * 获取章节声音
     * 
     * @return 章节声音
     */
    public String getChapterVoice() {
        return this.chapterVoice;
    }

    /**
     * 设置章节声音
     * 
     * @param chapterVoice
     *          章节声音
     */
    public void setChapterVoice(String chapterVoice) {
        this.chapterVoice = chapterVoice;
    }

    /**
     * 获取喜马拉雅章节id
     * 
     * @return 喜马拉雅章节id
     */
    public Integer getHimalayaChId() {
        return this.himalayaChId;
    }

    /**
     * 设置喜马拉雅章节id
     * 
     * @param himalayaChId
     *          喜马拉雅章节id
     */
    public void setHimalayaChId(Integer himalayaChId) {
        this.himalayaChId = himalayaChId;
    }

    /**
     * 获取创建时间
     * 
     * @return 创建时间
     */
    public Date getCreateTime() {
        return this.createTime;
    }

    /**
     * 设置创建时间
     * 
     * @param createTime
     *          创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取下载标识 0未下载有声书 1下载
     * 
     * @return 下载标识 0未下载有声书 1下载
     */
    public String getChapterSign() {
        return this.chapterSign;
    }

    /**
     * 设置下载标识 0未下载有声书 1下载
     * 
     * @param chapterSign
     *          下载标识 0未下载有声书 1下载
     */
    public void setChapterSign(String chapterSign) {
        this.chapterSign = chapterSign;
    }
}